#include "Heap.h"

void test1()
{
	Heap hp;
	HeapInit(&hp);

	int a[] = { 100, 56, 76, 80, 65, 60 };
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}

	printf("%d\n", HeapSize(&hp));
	while (!HeapEmpty(&hp))
	{
		printf("%d\n", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestory(&hp);
}

void test2()
{
	int a[] = { 7,9,1,4,6,2,8,3,5,0 };
	HeapSort(a, sizeof(a) / sizeof(int));

	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		printf("%d ", a[i]);
	}
}

int main()
{
	//test1();//Զ
	//test2();//

	CreateNData();
	PrintTopK(3);

	return 0;
}